/*
==============================================================================================================================================================

www.sourceforge.net/projects/sinip
Copyright Stephane Baudoux (www.stephane-baudoux.com)

This file is part of SiniP.

SiniP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SiniP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SiniP.  If not, see <http://www.gnu.org/licenses/>.

==============================================================================================================================================================
*/
#ifndef _DLL_EXPORT_
#define  _DLL_EXPORT_
#endif

#include "SiniPComment.h"




/**
* Constructor
* @param comment The comment text
*/
SiniPComment::SiniPComment(const std::string & comment)
{
	this->m_type = SINIP_ELEMENT_COMMENT;
	SetComment(comment);
}

/**
* Set the comment
* @param comment The comment text
*/
void SiniPComment::SetComment(const std::string & comment)
{
	this->m_comment = comment;
}

/**
* Return a string representation of the element
* @return A string representation of the element
*/
const std::string SiniPComment::ToString() const
{
	return this->m_comment;
}
